<template>
  <div>
    <el-container>
<!--      头部-->
      <el-header id="headerClass">
        <h1>云上设计院</h1>
      </el-header>
<!--      页面的主题部分-->
      <el-container>
<!--        左面侧边栏-->
        <el-aside width="200px" class="asideClass">
          <p>功能菜单</p>

          <el-menu class="el-menu-vertical-demo"
                    router :default-active="$route.path"
                    default-active="1"
                    @open="handleOpen"
                    @close="handleClose" style="text-align: left"
          >
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-delete"></i>
                <span>车辆管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/car"><i class="el-icon-edit"></i>车辆信息一览</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-delete"></i>
                <span>经营管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/operations"><i class="el-icon-edit"></i>投标任务一览</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "Home"
}
</script>

<style scoped>
  #headerClass{
    background-color: #a0d0d6;
  }
  #headerClass h1{
    line-height: 30px;
  }
  .asideClass{
    background-color: deepskyblue;
    height: 800px;
  }
  .asideClass p{
    font-weight: bolder;
    font-size: 20px;
  }
</style>
